package com.guiji.quartz.task;

import com.guiji.quartz.domain.Trends;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @program: cms-vue-plus
 * @description:
 * @author: gaoX
 * @date 2021/12/28 18:37
 */
@Component("trendsTask")
public class TrendsTask {
	private static final Logger log = LoggerFactory.getLogger(TrendsTask.class);
	public void trendsTask() throws Exception {
		long startTime = System.currentTimeMillis();
		try {
			Trends.mainMethod();
		} catch (Exception e) {
		}finally {
			log.info("TrendsTask-end-:{}",System.currentTimeMillis()-startTime);
		}
	}
	public void trendsTask2() throws Exception {
		long startTime = System.currentTimeMillis();
		try {
			Trends.mainMethod2();
		} catch (Exception e) {
		}finally {
			log.info("TrendsTask2-end-:{}",System.currentTimeMillis()-startTime);
		}
	}
	public void trendsTaskM() throws Exception {
		long startTime = System.currentTimeMillis();
		try {
			Trends.mainMethodM();
		} catch (Exception e) {
		}finally {
			log.info("TrendsTaskM-end-:{}",System.currentTimeMillis()-startTime);
		}
	}
	public void trendsTaskH() throws Exception {
		long startTime = System.currentTimeMillis();
		try {
			Trends.mainMethodH();
		} catch (Exception e) {
		}finally {
			log.info("TrendsTaskH-end-:{}",System.currentTimeMillis()-startTime);
		}
	}
	public void trendsTaskT() throws Exception {
		long startTime = System.currentTimeMillis();
		try {
			Trends.mainMethodT();
		} catch (Exception e) {
		}finally {
			log.info("TrendsTaskT-end-:{}",System.currentTimeMillis()-startTime);
		}
	}
	public void trendsTaskS() throws Exception {
		long startTime = System.currentTimeMillis();
		try {
			Trends.mainMethodS();
		} catch (Exception e) {
		}finally {
			log.info("TrendsTaskS-end-:{}",System.currentTimeMillis()-startTime);
		}
	}public void trendsTaskE() throws Exception {
		long startTime = System.currentTimeMillis();
		try {
			Trends.mainMethodE();
		} catch (Exception e) {
		}finally {
			log.info("TrendsTaskE-end-:{}",System.currentTimeMillis()-startTime);
		}
	}

}
